<?php
//获取推荐人信息
if($_SESSION["tjr"]==NULL)
{
	$_SESSION["tjr"]=$_GET["rec"]; 
}
?>
<div class="header">
  <div class="t1">
  	<div class="center">
      <div class="logo"><img src="template/<?=MOBAN?>/images/logo.gif" width="228" height="60" alt="" /></div>
      <div class="FRight" style="text-align:left">
        <ul class="headerTopRight" style="width:634px;">
        <li class="HUserimg"><img src="upload/avatar/<?=get_avatar_filepath($_SESSION['dduserid'], $size = 'big')?>" width="40" height="40" /></li>
        <li><a href="<?=$navheadurl?>user/center.php">我的优米库</a></li>
        <?php
		if($_SESSION["duoduouser"]==NULL)
		{
		  echo "<li><a href=\"".$navheadurl."user/register.php\">成为米粒</a></li>";
          echo "<li><a href=\"".$navheadurl."user/login.php\">登录</a></li>";  		   
		}
		if($_SESSION["duoduouser"]==NULL)
		{
		  if($_SESSION["tmpuser"]==NULL)
		  {	
		  	$iUserID=rand(1,100);
			$_SESSION["tmpuser"]=$iUserID;	
		  }
		  echo "<li><a href=".$navheadurl."user/center.php>您好，游客".$_SESSION["tmpuser"]."</a></li>";
		}
		else
		{
		  echo "<li><a href=\"".$navheadurl."user/exit.php\">退出</a></li>";   
		  echo "<li><a href=".$navheadurl."user/center.php>您好，".$_SESSION["duoduouser"]."</a></li>";
        }
        ?>
        <li><a href="<?=$navheadurl?>user/msg_list.php?act=send">提意见给客服</a></li>
        <li><a href="<?=$navheadurl?>user/msg_list.php?act=send">咨询优优助手</a></li>
        <li><a href="#dd" onclick="AddFavorite('<?=$navheadurl?>','<?=WEBNICK?>')">添加到收藏夹</a></li>
        <li><a href="<?=$navheadurl?>comm/shortcut.php">放到桌面</a></li>
        </ul>
      </div>
    </div> 
  </div>
  <div class="t2">
    <div class="nav" style="width:980px; margin:0px auto;">
      <span class="l"><a href="<?=$navheadurl?>index.php">首页</a><a href="malllist.php">返米店铺</a><a href="huan.php">用米兑换</a><a href="baobeilist.php">米粒晒吧</a><!--<a href="#">返米宝</a>--></span>
      <span>
      <a href="#">提交订单</a>  <a href="#">米票兑换</a> <a href="<?=$navheadurl?>user/tuiguang_url.php">免费攒米</a> <!--<a href="#">省钱检测</a>--> <a href="#">优米联盟</a>
      </span>
    </div>
  </div>
</div>